package vip.xiaonuo.facedoor.modular.listener;

import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Service;
import vip.xiaonuo.facedoor.modular.device.listener.DeviceChangeEvent;
import vip.xiaonuo.facedoor.modular.device.listener.DeviceChangeTypeEnum;
import vip.xiaonuo.facedoor.modular.device.listener.DeviceSourceEnum;

import javax.annotation.Resource;

@Service
public class FacedoorDeviceListener {

//    @Resource
//    private FacedoorChangeHandler handler;
//
//    @EventListener
//    public void getListenerData(DeviceChangeEvent event) {
//
//        DeviceChangeTypeEnum changeType = event.getChangeType();
//        DeviceSourceEnum source = event.getDeviceSource();
//        handler.handle(changeType,source, event.getSource());
//    }

}
